package univer.oko.payment;

import java.io.Serializable;
import java.util.Date;

public class Payment implements Serializable {
    private int ID = 0;
    private int studentID = 0;
    private String student = "";
    private String studentStatus = "";
    private double sum = 0.0;
    private double sumUSD = 0.0;
    private Date payDate;
    private Date regDate;
    private String reason = "";
    private String paymentForm = "";
    private String paymentBasis = "";
    private String payer = "";
    private String paymentYear = "";
    private String paymentType;
    private static long serialVersionUID = 6699317640434285412L;

    public void setID(int s) {
        ID = s;
    }

    public int getID() {
        return ID;
    }

    public void setStudentID(int s) {
        studentID = s;
    }

    public int getStudentID() {
        return studentID;
    }

    public void setStudent(String str) {
        student = str;
    }

    public String getStudent() {
        return student;
    }

    public void setStudentStatus(String s) {
        studentStatus = s;
    }

    public String getStudentStatus() {
        return studentStatus;
    }

    public void setSum(double str) {
        sum = str;
    }

    public double getSum() {
        return sum;
    }

    public void setSumUSD(double str) {
        sumUSD = str;
    }

    public double getSumUSD() {
        return sumUSD;
    }

    public void setPayDate(Date date) {
        payDate = date;
    }

    public Date getPayDate() {
        return payDate;
    }

    public void setRegDate(Date date) {
        regDate = date;
    }

    public Date getRegDate() {
        return regDate;
    }

    public void setReason(String str) {
        reason = str;
    }

    public String getReason() {
        return reason;
    }

    public void setPaymentForm(String str) {
        paymentForm = str;
    }

    public String getPaymentForm() {
        return paymentForm;
    }

    public void setPaymentBasis(String str) {
        paymentBasis = str;
    }

    public String getPaymentBasis() {
        return paymentBasis;
    }

    public void setPayer(String str) {
        if (str == null) {
            payer = "";
        } else
            payer = str;
    }

    public String getPayer() {
        return payer;
    }

    public String getPaymentYear() {
        return paymentYear;
    }

    public void setPaymentYear(String paymentYear) {
        this.paymentYear = paymentYear;
    }

    public String getPaymentType() {
        return paymentType;
    }

    public void setPaymentType(String paymentType) {
        this.paymentType = paymentType;
    }

    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        final Payment payment = (Payment) o;

        if (ID != payment.ID) return false;

        return true;
    }

    public int hashCode() {
        return ID;
    }
}
